import React, { useEffect, useState } from 'react';
import axios from 'axios'
export function useLossList() {
    var [lossList, uselossList] = useState();
    useEffect(() => {
        axios.get("/posts").then((res) => {
            console.log(res.data[1].loss_list)
            uselossList(res.data[1].loss_list)
        })
    }, [])
    return [lossList, uselossList]
}